﻿<%@ Page  Language="C#" AutoEventWireup="true"   CodeBehind="SearchPassportProviderResults.aspx.cs" Inherits="FreeProperty.Views.ProviderDirectory.SearchPassportProviderResults" %>

<body>
    <form id="frmContent" runat="server">
    
    <div id="MainContainer">
    <h2>
        Provider Directory</h2>
        <asp:HiddenField ID="hdnPageCount" runat="server" />
        <asp:HiddenField ID="hdnCurrentPage" runat="server" />
        <asp:HiddenField ID="hdnSelectedPane" runat="server" />
        <asp:HiddenField ID="hdnStatus" runat="server" />
        <div align="left">
            <table border="0" align="center" cellpadding="3" cellspacing="0">
                <tbody>
                    <tr>
                        <td>
                            <strong><font face="Arial" size="2">KEY:</font></strong>
                        </td>
                        <td>
                            <img src="Styles/Images/eyechart.gif" alt="Eyechart" align="top">
                        </td>
                        <td>
                            <font face="Arial" size="2">Eye Exam Only</font>
                        </td>
                        <td>
                            <img src="Styles/Images/glasses.gif" alt="Glasses" align="top">
                        </td>
                        <td>
                            <font face="Arial" size="2">Eye Wear Only</font>
                        </td>
                        <td>
                            <img src="Styles/Images/glasses_chart.gif" alt="Eyechart with Glasses" align="top">
                        </td>
                        <td>
                            <font face="Arial" size="2">Eye Wear and Exams</font>
                        </td>
                    </tr>
                </tbody>
            </table>
            <br />
            <strong><font face="Arial" size="2"><em>Please be aware that <strong>some Block Vision
                network providers</strong> do not participate on all of Block’s affiliated programs.
                The information provided on this website is for general provider identification
                purposes only.</em><br>
                <br>
            </font></strong>
        </div>
        <table style="width:100%">
        <tr>
        <td style="width:70%"><asp:Label ID="lblResult" CssClass="error" runat="server"></asp:Label>
        </td>
        <td>
        <a href="#" style="font-size:11px;font-weight:bold"  onclick="javascript:return AjaxGET('Views/ProviderDirectory/SearchPassportProvider.aspx',OnSuccess,OnError)" id="btnSearch">
                                    Search&nbsp;<img src="Styles/Images/search_icon.gif" alt="Provider Directory" /></a>&nbsp;&nbsp;
                                    <a href="#" onclick="javascript:return AjaxGET('Views/ProviderDirectory/EmailResults.aspx',OnSuccess,OnError)" id="btnEmailResults">
                                    <img src="Styles/Images/email_icon.gif" alt="Email results" /></a>&nbsp;&nbsp;
                                    <a href="Views/ProviderDirectory/PrintResults.aspx" target="_blank"   id="btnPrintResults">
                                    <img src="Styles/Images/action_print.gif" alt="Print page" /></a>
        </td>
        </tr>
        </table>
        
        
        <asp:GridView ID="grdSearchResults" runat="server" CssClass="gridTable" AutoGenerateColumns="False"
            CellPadding="4" GridLines="None" OnRowDataBound="grdSearchResults_RowDataBound">
            <Columns>
                <asp:TemplateField HeaderText="Provider">
                    <ItemTemplate>
                        <asp:Label ID="lblFirstName" runat="server" Text='<%# Bind("FirstName") %>'></asp:Label>
                        <asp:Label ID="lblLastName" runat="server" Text='<%#Bind("LastName") %>'></asp:Label>
                        <br />
                        <asp:Label ID="lblLocation" runat="server" Text='<%#Bind("LocationName") %>'></asp:Label>
                        <br />
                        <asp:Label ID="lblAddress" runat="server" Text='<%#Bind("Address") %>'></asp:Label>,
                        <br />
                        <asp:Label ID="lblCity" runat="server" Text='<%#Bind("City") %>'></asp:Label>,
                        <asp:Label ID="lblState" runat="server" Text='<%#Bind("State") %>'></asp:Label>
                        <asp:Label ID="lblZip" runat="server" Text='<%#Bind("ZipCode") %>'></asp:Label>
                        <br />
                        <asp:Label ID="lblPhone" runat="server" Text='<%#Bind("Phone") %>'></asp:Label><br />
                        <asp:Label ID="lblDistanceInfo" CssClass="distanceInfo" runat="server" ></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField ItemStyle-HorizontalAlign="Center" HeaderText="Services">
                    <ItemTemplate>
                        <asp:Image ID="imgServicesA" ImageUrl="Styles/Images/eyechart.gif" runat="server" />
                        <asp:Image ID="imgServicesY" ImageUrl="Styles/Images/eyechart.gif" runat="server" />
                        <asp:Image ID="imgServicesC" ImageUrl="Styles/Images/eyechart.gif" runat="server" />
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Provider Details">
                    <ItemTemplate>
                        Eyewear retailer:<asp:Label ID="lblSpeciality" runat="server" Text='<%#Bind("Class") %>'></asp:Label><br />
                        Language: <asp:Label ID="lblLanguage" runat="server" Text='<%#Bind("Language") %>'></asp:Label><br />
                        Accepting Patients:<asp:Label ID="lblAcceptingNewPatients" runat="server" Text='<%#Bind("AcceptingNewPatients")%>'></asp:Label><br />
                        Board Certified:<asp:Label ID="lblBoardCertified" runat="server" Text='<%#Bind("BoardCertified") %>'></asp:Label><br />
                        Gender:<asp:Label ID="lblGender" runat="server" Text='<%#Bind("Gender") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField ItemStyle-HorizontalAlign="Center"  HeaderText="Map">
                    <ItemTemplate>
                        <asp:HyperLink ID="lnkMap" ImageUrl="Styles/Images/mapq.gif" Target="_blank" NavigateUrl="http://maps.google.com"
                            runat="server"></asp:HyperLink>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
            <HeaderStyle CssClass="gridHeader" />
            <RowStyle CssClass="gridTable" />
            <AlternatingRowStyle CssClass="altRow" />
        </asp:GridView>
        <table style="width:100%">
            <tr>
                <td align="right">
                    <div id="divPageNoFooter" class="pages" runat="server">
                        <span><a href="" runat="server" style="cursor: hand" id="lnkFootFirst" class="first">
                            First</a></span> <span><a style="cursor: hand" runat="server" id="lnkFootPrevious"
                                href="" class="previous">Prev</a></span> <span id="spanFootServerPaging" runat="server"
                                    class="nums"></span><span><a href="" runat="server" style="cursor: hand" id="lnkFootNext"
                                        class="next">Next</a></span> <span><a href="" runat="server" id="lnkFootLast" style="cursor: hand"
                                            class="last">Last</a></span>
                    </div>
                </td>
            </tr>
        </table>
    </div>
    </form>
    </body>
